package com.yueqian.framework.config;


import com.baomidou.mybatisplus.annotation.DbType;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@MapperScan(value = "com.yueqian.**.mapper")
public class MybatisPlusConfig {
	/**
	 * Mybatis plus interceptor mybatis plus interceptor.
	 *
	 * @return the mybatis plus interceptor
//	 */
//	@Bean
//	public MybatisPlusInterceptor mybatisPlusInterceptor() {
//		MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
//		// 分页
//		interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
//		// 防止全表更新与删除
//		interceptor.addInnerInterceptor(new BlockAttackInnerInterceptor());
//		return interceptor;
//	}
}
